#include<stdio.h>
#include<errno.h>
#include<string.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>



int main()
{
  printf("我的程序要运行了\n");
 // execl("/usr/bin/ls","ls","-a","-l",NULL);
 pid_t id =fork();
 if(id==0)
 {
 sleep(1);
 execl("./other","other",NULL);
 exit(1);
 }
 waitpid(-1,NULL,0);
  printf("程序运行完毕\n");
  return 0;
}
